import java.util.Scanner;

public class 素数练习 {
    public static void main(String[] args) {
        for (int i = 2; i < 100; i++) {

            int n = 2;
            for (; n <= Math.sqrt(i); n++) {
                if (i % n == 0) {
                    break;
                }
            }
            if (n > Math.sqrt(i)) {
                System.out.println(i + "是素数");
            }
        }
    }
}
/*
    public static void main(String[] args) {

        int sushu = 19;
        int n = 2;
        for (; n <= Math.sqrt(sushu); n++) {
            if (sushu % n == 0) {
                break;
            }
        }
        if (sushu > Math.sqrt(sushu)) {
            System.out.println(sushu + "是素数");
        }
    }
}*/
